import Vue from 'vue'
import Vuex from 'vuex'
import * as actions from './actions'


Vue.use(Vuex);


export default new Vuex.Store({
  state:{
    user_id:'',
    phone:'',
    token:'',
      Vin:''
  },
  mutations:{
    mutationName(state,a) {
      //在这里改变state中的数据
      state.user_id=a.user_id;
      state.phone=a.phone;
    },
      vinset(state,a){
        state.Vin=a;
      },
    tokenName(state,a){
      state.token=a;
    }
  },
  actions,
  // getters,
})
